Calling gdk_gl_context_realize() should always result in a valid result,
so we need to provide a default implementation, to avoid a call to a
NULL function pointer.
}
}
+static gboolean
+gdk_gl_context_real_realize (GdkGLContext *self,
+ GError **error)
+{
+ g_set_error_literal (error, GDK_GL_ERROR, GDK_GL_ERROR_NOT_AVAILABLE,
+ "The current backend does not support OpenGL");
+
+ return FALSE;
+}
+
static void
gdk_gl_context_class_init (GdkGLContextClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ klass->realize = gdk_gl_context_real_realize;
+
/**
* GdkGLContext:display:
*